package com.example.demo.controller;/**
 * 类描述
 *
 * @author 8522
 * @date 2021/10/9 15:29
 * 版权所有 Copyright www.dahantc.com
 */

/**
 *@Description:
 *@Author: 8522
 *@Date: 2021/10/9  15:29
 *@Version v1.0
 */

import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:wjup
 * @Date: 2018/9/26 0026
 * @Time: 14:42
 */

@RestController
@RequestMapping("/testBoot")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("getUser/{id}")
    public String GetUser(@PathVariable int id){
        return userService.Sel(id).toString();
    }
}
